README file for "What Drives Perceptions of Partisan Cooperation?" 

Lie Philip Santoso, Randolph Stevenson, Simon Weschle
Updated: May 7, 2023

Instruction:

For all the stata do files, R script, and data files, please put all of them in a single folder, then change the working directory in the do files and R script as appropriate.
Required Stata package: outreg2
Required R package: haven, lme4, sjPlot, ggplot2, ggpubr
The replication files were compiled using Stata 14 and R 4.2.1 on a Windows 10 computer with 16 GB of RAM.

 
Data files (1):

1. replication_data.dta: this dataset contains all the variables used in the analysis, both in the main text and in the appendix. 

Code files:

1. table 1 (model A-F).do:
   - Replication Stata do file for Table 1 models A to F in the main text.
   - this file uses replication_data.dta
   - the log file is included as table 1 (model A-F).smcl

2. table 1 (model G-L).do:
   - Replication Stata do file for Table 1 models G to L in the main text.
   - this file uses replication_data.dta
   - the log file is included as table 1 (model G-L).smcl

3. fig 1.do:
   - Replication Stata do file for Figure 1 in the main text.
   - this file uses replication_data.dta
   - the log file is included as fig 1.smcl 

4. fig 2. R
   - Replication R script for Figure 2 in the main text.
   - this file uses replication_data.dta

5. appendix.do:
   - Replication do file for all the tables in Appendix 2 (except for tables A2.7 and A2.12), Appendix 5, and Appendix 6.
   - this file uses replication_data.dta
   - the log file is included as appendix.smcl

6. fig A3_1.do:
   - Replication Stata do file for Figure A3.1 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as fig A3_1.smcl 

7. fig A3_2.do:
   - Replication Stata do file for Figure A3.2 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as fig A3_2.smcl 

8. fig A3_3.do:
   - Replication Stata do file for Figure A3.3 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as fig A3_3.smcl 

9. fig A3_4.do:
   - Replication Stata do file for Figure A3.4 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as fig A3_4.smcl 

10. table A2_7.do:
   - Replication Stata do file for Table A2.7 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as table A2_7.smcl

11. table A2_12.do:
   - Replication Stata do file for Table A2.12 in the appendix.
   - this file uses replication_data.dta
   - the log file is included as table A2_12.smcl

